using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BeginManager : MonoBehaviour
{
    public GameObject privacyPolicy_Case;
    private void Start()
    {
        if (PlayerPrefs.GetInt("AgreePrivacyPolicy") == 1)
        {
            LoadScene_Manager.instance.LoadScene("Init");
            return;
        }
        privacyPolicy_Case.gameObject.SetActive(true);
    }
    public void UnAgree()
    {
        Application.Quit();
    }
    public void Agree()
    {
        privacyPolicy_Case.gameObject.SetActive(false);
        PlayerPrefs.SetInt("AgreePrivacyPolicy", 1);
        LoadScene_Manager.instance.LoadScene("Init");
    }
    public void ShowPrivacyPolicy()
    {
        Application.OpenURL("https://iakgqj7j3fq.feishu.cn/wiki/HSLcw5rhniaQGNk8fZbcACBjnSd?from=from_copylink");
    }
}
